package cn.com.dycc.party_org.team.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

public class TeamResultEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5662968091183877628L;
	
	private String dept_id;				//党组ID
	private String user_id;				//党员ID
	private String group_flag;			//1党组班子成员   2党组成员 
	private Integer order_no;			//排序
	private String state;			//可用标识
	private String org_id;			//组织标识
	private Timestamp create_date;	//创建时间
	private String opt_user_id;		//创建人
	private String update_date; 	//更新时间
	private String update_user_id;	//更新人
	
	private String user_name;   	//党组人员名称
	private String dept_name;  		//党组名称
	private String group_flag_name; //字典表关联group_flag
	private String state_name;		//字典表关联state
	private String opt_user_name;	//创建人名称
	private String update_user_name; 	//更新人名称
	
	public TeamResultEntity(){}

	

	public TeamResultEntity(String dept_id, String user_id, String group_flag, Integer order_no, String state,
			String org_id, Timestamp create_date, String opt_user_id, String update_date, String update_user_id,
			String user_name, String dept_name, String group_flag_name, String state_name, String opt_user_name,
			String update_user_name) {
		super();
		this.dept_id = dept_id;
		this.user_id = user_id;
		this.group_flag = group_flag;
		this.order_no = order_no;
		this.state = state;
		this.org_id = org_id;
		this.create_date = create_date;
		this.opt_user_id = opt_user_id;
		this.update_date = update_date;
		this.update_user_id = update_user_id;
		this.user_name = user_name;
		this.dept_name = dept_name;
		this.group_flag_name = group_flag_name;
		this.state_name = state_name;
		this.opt_user_name = opt_user_name;
		this.update_user_name = update_user_name;
	}

	

	public String getState_name() {
		return state_name;
	}



	public void setState_name(String state_name) {
		this.state_name = state_name;
	}



	public String getDept_id() {
		return dept_id;
	}

	public void setDept_id(String dept_id) {
		this.dept_id = dept_id;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getGroup_flag() {
		return group_flag;
	}

	public void setGroup_flag(String group_flag) {
		this.group_flag = group_flag;
	}

	public Integer getOrder_no() {
		return order_no;
	}

	public void setOrder_no(Integer order_no) {
		this.order_no = order_no;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getOrg_id() {
		return org_id;
	}

	public void setOrg_id(String org_id) {
		this.org_id = org_id;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public Timestamp getCreate_date() {
		return create_date;
	}

	public void setCreate_date(Timestamp create_date) {
		this.create_date = create_date;
	}

	public String getOpt_user_id() {
		return opt_user_id;
	}

	public void setOpt_user_id(String opt_user_id) {
		this.opt_user_id = opt_user_id;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	public String getUpdate_date() {
		return update_date;
	}

	public void setUpdate_date(String update_date) {
		this.update_date = update_date;
	}

	public String getUpdate_user_id() {
		return update_user_id;
	}

	public void setUpdate_user_id(String update_user_id) {
		this.update_user_id = update_user_id;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getDept_name() {
		return dept_name;
	}

	public void setDept_name(String dept_name) {
		this.dept_name = dept_name;
	}

	public String getGroup_flag_name() {
		return group_flag_name;
	}

	public void setGroup_flag_name(String group_flag_name) {
		this.group_flag_name = group_flag_name;
	}

	public String getOpt_user_name() {
		return opt_user_name;
	}

	public void setOpt_user_name(String opt_user_name) {
		this.opt_user_name = opt_user_name;
	}

	public String getUpdate_user_name() {
		return update_user_name;
	}

	public void setUpdate_user_name(String update_user_name) {
		this.update_user_name = update_user_name;
	}

	@Override
	public String toString() {
		return "TeamResultEntity [dept_id=" + dept_id + ", user_id=" + user_id + ", group_flag=" + group_flag
				+ ", order_no=" + order_no + ", state=" + state + ", org_id=" + org_id + ", create_date=" + create_date
				+ ", opt_user_id=" + opt_user_id + ", update_date=" + update_date + ", update_user_id=" + update_user_id
				+ ", user_name=" + user_name + ", dept_name=" + dept_name + ", group_flag_name=" + group_flag_name
				+ ", state_name=" + state_name + ", opt_user_name=" + opt_user_name + ", update_user_name="
				+ update_user_name + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((dept_id == null) ? 0 : dept_id.hashCode());
		result = prime * result + ((user_id == null) ? 0 : user_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		TeamResultEntity other = (TeamResultEntity) obj;
		if (dept_id == null) {
			if (other.dept_id != null)
				return false;
		} else if (!dept_id.equals(other.dept_id))
			return false;
		if (user_id == null) {
			if (other.user_id != null)
				return false;
		} else if (!user_id.equals(other.user_id))
			return false;
		return true;
	}
	
	

}
